package com.lframework.starter.web.core.components.generator.rule.impl;

import com.lframework.starter.web.core.components.generator.rule.GenerateCodeRule;
import lombok.Data;

import java.io.Serializable;

/**
 * 随机整数生成规则
 */
@Data
public class RandomIntGenerateCodeRule extends CustomRandomStrGenerateCodeRule implements
        GenerateCodeRule, Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 长度
     */
    private Integer len;

    public RandomIntGenerateCodeRule() {
        setPool("0123456789");
    }
}
